package com.busionline.wotu.woochenandroid.tools;


import com.busionline.wotu.woochenandroid.WoochenApplication;


/**
 *资源文件工具类
 *@author chenwuchao
 *@time 2017/8/31 11:25
 *@desc
 */
public class ResourceUtil {
    private ResourceUtil() {
    }

    /**
     * 通过资源文件找到对应文字
     * @param resId
     * @return
     */
    public static String getString(int resId){
        return WoochenApplication.mContext.getResources().getString(resId);
    };


    /**
     * 通过资源文件找到对应文字
     * @param resId
     * @return
     */
    public static int getColor(int resId){
        return WoochenApplication.mContext.getResources().getColor(resId);
    };
}
